<template>
	<view class="about-us">
		<view class="logo-box flex-col align-c mb50">
			<image class="mb20" src="../../../static/my/logo.png" mode=""></image>
			<view class="fz15">
				当前版本{{version_number}}
			</view>
		</view>
		<view class="">
			<view class="settings-line space-between">
				<view class="fz16">
					版本更新
				</view>
				<view class="fz12 c9">
					无新版本
				</view>
			</view>

			<!-- <view class="settings-line space-between">
				<view class="fz16">
					给我们评分
				</view>
				<image src="../../../static/my/right_icon.png" mode=""></image>
			</view> -->

			<view class="settings-line space-between" @click="goXiey(3)">
				<view class="fz16">
					服务协议
				</view>
				<image src="../../../static/my/right_icon.png" mode=""></image>
			</view>
			<view class="settings-line space-between" @click="goXiey(2)">
				<view class="fz16">
					隐私政策
				</view>
				<image src="../../../static/my/right_icon.png" mode=""></image>
			</view>
			<view class="settings-line space-between" @click="goXiey(2)">
				<view class="fz16">
					ICP备案
				</view>
				<view class="">
					琼ICP备2023004356号-2A
				</view>
				<!-- <image src="../../../static/my/right_icon.png" mode=""></image> -->
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				version_number: '1.0.0',
			}
		},
		onLoad() {
			this.banb()
		},
		methods: {
			banb(){
				plus.runtime.getProperty(plus.runtime.appid, inf => {
					console.log(inf.version,'版本号')
					this.version_number=inf.version
				});
			},
			// 跳转到协议页面
			goXiey(type){
				uni.navigateTo({
					url:'/pages/subpackage/my/policy?type='+type
				})
			}
		}
	}
</script>

<style lang="scss">
	.about-us {
		image {
			width: 152rpx;
			height: 152rpx;
		}

		.logo-box {
			padding-top: 140rpx;
		}

		.settings-line {
			background-color: #ffffff;
			height: 120rpx;
			padding: 0 30rpx;
			box-sizing: border-box;
			position: relative;

			image {
				width: 30rpx;
				height: 30rpx;
			}
		}

		.settings-line::after {
			content: "";
			width: calc(100vw - 30rpx);
			height: 2rpx;
			background-color: #F2F2F2;
			position: absolute;
			bottom: 0;
			left: 50%;
			transform: translateX(-50%);
		}
	}
</style>